package com.spica.platform.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spica.platform.base.model.PageResult;
import com.spica.platform.base.model.SysRole;
import com.spica.platform.db.service.IService;
import com.spica.platform.user.model.request.SysRoleQueryParam;

public interface ISysRoleService extends IService<SysRole> {

	/**
	 * 角色列表
	 */
	PageResult<SysRole> findSysRolesByParam(Page<SysRole> page, SysRoleQueryParam sysRoleQueryParam);

	boolean saveRole(SysRole sysRole) ;

	boolean deleteRole(Long id);

	/**
	 * 新增或更新角色
	 */
	boolean saveOrUpdateRole(SysRole sysRole)  ;

}
